package com.yanyeori.framework.security.configprop;

import com.yanyeori.framework.core.constant.ChannelEnum;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

import java.util.HashMap;
import java.util.Map;

/**
 * Jwt token配置
 *
 * @author chenkuan 2020/12/23
 */
@Getter
@Setter
public class TokenProps {
    //token有效时间(分钟，默认60分钟)
    private Map<ChannelEnum, Long> tokenExpiration = new HashMap<>();

    //签名配置
    @NestedConfigurationProperty
    private SignProps sign = new SignProps();
}
